<template>
  <view class="viewport">
    <scroll-view
      class="scroll-view"
      :refresher-triggered="refreshing"
      scroll-y="true"
      lower-threshold="20"
      @scrolltolower="onScrollToLower"
      @refresherrefresh="onRefresh"
    >
      <view class="warp">
        <view class="title">
          <fui-section
            title="维修工单"
            fontWeight="500"
            descrSize="25"
            color="#666"
            lineWidth="4px"
            isLine
          ></fui-section>
        </view>
        <view class="ul">
          <fui-input
            required
            label="工单单号"
            borderTop
            placeholder="系统自动生成"
            v-model="formData.name"
          ></fui-input>
          <fui-input
            required
            label="工单主题"
            borderTop
            placeholder="请输入报修主题"
            v-model="formData.name"
          ></fui-input>
          <view class="li">
            <span>工单类型</span>
            <span>报修工单</span>
          </view>
          <fui-input
            required
            label="维修班组"
            :bottomLeft="0"
            placeholder="请输入"
          >
            <fui-icon :size="50" name="arrowright" @click="team"></fui-icon>
          </fui-input>
          <fui-input
            required
            label="维修负责人"
            :bottomLeft="0"
            placeholder="请输入"
          >
            <fui-icon :size="50" name="arrowright" @click="staff"></fui-icon>
          </fui-input>
          <fui-input label="其他维修人" :bottomLeft="0" placeholder="请输入">
            <fui-icon :size="50" name="arrowright" @click="other"></fui-icon>
          </fui-input>
        </view>
      </view>
    </scroll-view>
  </view>
</template>

<script setup>
import { ref } from "vue";
const formData = ref({});
const team = () => {
  uni.navigateTo({
    url: "/subpkg_index/dispatching/team",
  });
};
const staff = () => {
  uni.navigateTo({
    url: "/subpkg_index/dispatching/staff",
  });
};
</script>

<style lang="scss" scoped>
page {
  height: 100%;
  background-color: skyblue;
}
.viewport {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.scroll-view {
  height: 100%;
}
.warp {
  padding-bottom: 100rpx;
  // background-color: pink;
  // display: flex;
  .title {
    border-bottom: 1px solid #ccc;
    height: 70rpx;
    background-color: #fff;
    display: flex;
    align-items: center;
  }
  .ul {
    padding: 18rpx;
    .li {
      display: flex;
      align-items: center;
      height: 100rpx;
      border-bottom: 1px solid #eee;
      span {
        margin: 0 30rpx;
      }
    }
  }
}
</style>
